<?php

namespace App\Http\Requests\Common\LogisticTrace;

use App\Http\Requests\ApiRequest;
use App\Models\Customers\Customer;

/**
 * @property string shipper_code
 * @property string logistic_code
 * @property string order_id
 */
class LogisticTraceSubscribeRequest extends ApiRequest
{
    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        $rules = [
            "shipper_code"  => 'required|string',
            "logistic_code" => 'required|string',
            "order_id"      => 'required|int|min:1',
        ];

        return $rules;
    }
}
